package com.dq.repository.user.centre;

import com.dq.domain.sys.user.user.BossUser;
import com.dq.domain.sys.user.user.centre.UserScheduling;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author luchangtong
 * @Date 2020/5/9 17:33
 */
public interface UserSchedulingRepository extends JpaRepository<UserScheduling,Long> {
    List<UserScheduling> findByDeletedFalseAndBossUserAndYearAndMonth(BossUser bossUser,Long year,Long month);

    UserScheduling findByDeletedFalseAndBossUserIdAndYearAndMonthAndDay(Long id,Long year,Long month,Long day);

    List<UserScheduling> findByDeletedFalseAndBossUserAndYearAndMonthAndDay(BossUser bossUser,Long year,Long month,Long day);
}
